package top.hjcwzx.wrench.service;

import org.springframework.stereotype.Service;
import top.hjcwzx.wrench.mqtt.annotation.MqttSubscribe;

/**
 *
 * <p><b>类名：</b> MqttAccessMessage</p>
 * <p><b>描述：</b> 消费</p>
 * <p><b>创建时间：</b> 2025-06-17 16:02 </p>
 *
 * @author 胡锦程
 */
@Service
public class MqttAccessMessage {


    @MqttSubscribe(topic = "test",messageType = String.class)
    public void a(String msg){
        System.out.println(msg);
    }


    @MqttSubscribe(topic = "testb",messageType = String.class)
    public void B(String msg){
        System.out.println(msg);
    }

}
